//package com.jvxb.demo.controller;
//
//import cn.hutool.core.lang.Assert;
//import com.jvxb.demo.service.RabbitmqService;
//import com.jvxb.demo.utils.ResponseDataVo;
//import io.swagger.annotations.Api;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.web.bind.annotation.*;
//
//import java.util.Map;
//
///**
// * @author jvxb
// * @since 2023-02-04
// */
//@RestController
//@RequestMapping("/rabbitmq")
//@Api(tags = "rabbitmq控制器")
//public class RabbitmqController {
//
//    @Autowired
//    RabbitmqService rabbitmqService;
//
//    @PostMapping("/send")
//    public ResponseDataVo send(@RequestBody Map<String, String> param) {
//        Assert.notBlank(param.get("exchange"), "exchange must not be null");
//        Assert.notBlank(param.get("routingKey"), "routingKey must not be null");
//        Assert.notBlank(param.get("message"), "message must not be null");
//        rabbitmqService.send(param.get("exchange"), param.get("routingKey"), param.get("message"));
//        return ResponseDataVo.success();
//    }
//}
